<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
      <label for="">basketball</label>
      <input type="checkbox" name="" id="" value="1" v-model='hobbies'>
      <label for="">soccer</label>
      <input type="checkbox" name="" id="" value="2"  v-model='hobbies'>
      <label for="">rap</label>
      <input type="checkbox" name="" id="" value="3"  v-model='hobbies'>
  </div>
  <script src="./vue.js"></script>
  <script>
    var vm = new Vue({
      el:'#app',
      data:{
          hobbies:[]
      },
      methods:{
      }
     });

     setInterval(()=>{
         vm.hobbies = [];

         let num1 = Math.floor(Math.random() * 3) + 1
         let num2 = Math.floor(Math.random() * 3) + 1

         num1 == num2 ? num2 = Math.floor(Math.random() * 3) + 1 : num2;
         vm.hobbies.push(num1,num2)
     },1000)
  </script>
</body>
</html>
